﻿define(["service/service", "service/httpService"], function (service) {
    service.factory("settingService", function (httpService) {
        var methods = {
            "get": function (params) {
                return httpService.get("/admin/setting/getsetting", params);
            },
            "put": function (data, params) {
                return httpService.call("put", "/admin/setting/putsetting", params, data);
            },
            "post": function (params) {
                return httpService.upload("/admin/setting/putsetting", params);
            },
            "getTokenSetting": function (params) {
                return httpService.get("/admin/setting/getTokenSetting", params);
            },
            "saveTokenSetting": function (params) {
                return httpService.post("/admin/setting/SaveTokenSetting", params);
            },
            "getTokenAppSetting": function () {
                return httpService.get("/admin/setting/GetTokenAppSetting");
            },
            "saveTokenAppSetting": function (params) {
                return httpService.post("/admin/setting/SaveTokenAppSetting", params);
            },
            "getTokenSMSSetting": function () {
                return httpService.get("/admin/setting/GetTokenSMSSetting");
            },
            "saveTokenSMSSetting": function (params) {
                return httpService.post("/admin/setting/SaveTokenSMSSetting", params);
            },
            "createTokenTestUserView": function () {
                return httpService.get("/admin/setting/createTokenTestUserView");
            },
            "createTokenTestUser": function (params) {
                return httpService.post("/admin/setting/createTokenTestUser", params);
            },
            "getTokenTransferSetting": function () {
                return httpService.get("/admin/setting/getTokenTransferSetting");
            },
            "saveTokenTransferSetting": function (params) {
                return httpService.post("/admin/setting/saveTokenTransferSetting", params);
            },
            "getTokenWithdrawSetting": function () {
                return httpService.get("/admin/setting/getTokenWithdrawSetting");
            },
            "saveTokenWithdrawSetting": function (params) {
                return httpService.post("/admin/setting/saveTokenWithdrawSetting", params);
            },
            "getTokenMallShoppingSetting": function () {
                return httpService.get("/admin/setting/getTokenMallShoppingSetting");
            },
            "saveTokenMallShoppingSetting": function (params) {
                return httpService.post("/admin/setting/saveTokenMallShoppingSetting", params);
            },
            "getTokenOpenSupplierSetting": function () {
                return httpService.get("/admin/setting/getTokenOpenSupplierSetting");
            },
            "saveTokenOpenSupplierSetting": function (params) {
                return httpService.post("/admin/setting/saveTokenOpenSupplierSetting", params);
            },

        }
        return methods;
    });
});